package com.hw.shortlink.project.common.constant;

/**
 * redis缓存常量类
 */
public class RedisKeyConstants {

    //永久短链接默认的key有效时间
    public static final long DEFAULT_CACHE_VALID_TIME = 2626560000L;

    //缓存跳转到的原链接key
    public static final String REDIRECT_KEY="redirect:";

    //缓存跳转锁key
    public static final String LOCK_REDIRECT_KEY="lock:redirect:";

    //缓存跳转空缓存
    public static final String REDIRECT_NULL_OBJECT_KEY="redirect:nullObject";

    public static final Long REDIRECT_NULL_OBJECT_TTL=30L;

    //uv统计key
    public static final String UV_KEY="stats:uv:";

    //uip统计key
    public static final String UIP_KEY="stats:uip:";

}
